﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>@ViewBag.Title</title>
    @RenderSection("header", required: false)
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="apple-touch-icon" href="apple-touch-icon.png">
    <link href="~/public/iconfont/iconfont.css" rel="stylesheet" />
    <link href="~/bootstrap-3_3_7/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/public/css/main.min.css" rel="stylesheet" />

    <!--开启对web app的支持-->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="date=no">
    <meta name="format-detection" content="address=no">
    <meta name="format-detection" content="email=no">
    <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- 微软的老式浏览器 -->
    <meta name="MobileOptimized" content="320">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">

    <script src="~/lib/compatibility/modernizr-2.8.3.min.js"></script>

    <!--[if lt IE 9]>
        <script src='https://cdn.jsdelivr.net/nwmatcher/1.2.5/nwmatcher.min.js'></script>
        <script src='https://cdn.jsdelivr.net/json2/0.2/json2.min.js'></script>
        <script src='https://cdn.rawgit.com/gisu/selectivizr/1.0.3/selectivizr.js'></script>
        <script src='https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js'></script>
        <script src='https://cdn.jsdelivr.net/respond/1.4.2/respond.min.js'></script>
        <script src='https://cdn.jsdelivr.net/es5.shim/4.4.1/es5-shim.min.js'></script>
    <![endif]-->
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header" style="margin-right:150px;">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Brand</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">任务大厅 <span class="sr-only">(current)</span></a></li>
                    @*<li><a href="#">Link</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">Separated link</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">One more separated link</a></li>
                </ul>
            </li>*@
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="单号或微信号">
                    </div>
                    <button type="submit" class="btn btn-default"><i class="iconfont icon-search" style="font-size:14px;"></i> 搜索</button>
                </form>
                @if (User.Identity.IsAuthenticated)
    {

            <ul class="nav navbar-nav navbar-right">
               
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="iconfont icon-gerenzhongxin"></i> 个人中心 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">我的委托单</a></li>
                        <li><a href="#">我的辅助单</a></li>
                        <li><a asp-controller="Account" asp-action="Index">个人资料</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a asp-controller="Account" asp-action="Logout">退出系统</a></li>
                    </ul>
                </li>
            </ul>
            <a asp-controller="Account" asp-action="Create" class="btn btn-primary navbar-btn navbar-right" style="margin-right:25px;"><i class="iconfont icon-survey1" style="font-size:12px;"></i> 发布委托</a>
}
else
{
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a asp-controller="Account" asp-action="Login">登录</a>
                </li>
                <li><a asp-controller="Account" asp-action="Register">注册</a></li>
            </ul>
}
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>


    @RenderBody()


    <footer class="page-footer">
        <p>&copy;2017-@DateTime.Now.Year @SettingsManager.Contact.CompanyName 版权所有 备案号：@SettingsManager.Site.WebNumber</p>
    </footer>
    <!-- The Scripts -->
    <!--[if lte IE 8]>
    <script src="/lib/jqueryForIE/jquery-1.11.3.min.js"></script>
    <![endif]-->
    <!--[if gte IE 9]><!-->
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <!--<![endif]-->
    <script src="~/bootstrap-3_3_7/js/bootstrap.min.js"></script>
    <script src="~/public/js/App.js"></script>

    @RenderSection("footer", required: false)




</body>
</html>
